package de.school.cbs.cube;
import java.awt.Color;
import javax.media.j3d.*;
import java.util.Observable;
public class LedLayer {
    private  LedRow[] rows;
    private int y;

    public LedLayer(int y, int width, int depth, float size, TransformGroup group, Observable cube, Color cubeColor) {
        this.rows = new LedRow[depth];
        this.y = y;
        for(int i = 0; i < depth; i++) {
            LedRow row = new LedRow(y, i, width, size, group, cube, cubeColor);
            row.setPos(y, i);
            this.rows[i] = row;
        }
    }

    public void setPos(int y) {
        this.y = y;
    }
} 
